declare var _hmt: any;
module baconbuy {
	export function tongji(category:String, action:String='-', opt_label:String='-') {
	 
	
		 debug.log("事件记录"+category+ action+opt_label);
		 if (typeof (_hmt) == 'object' && typeof (_hmt.push) == 'function') {
            _hmt.push(['_trackEvent', category, action, opt_label]);
			console.log("%c事件记录:"+category+','+ action+','+opt_label,'background: #AEAEAE;color: #FF0606;');
        }else{
			console.log("%c事件记录(请添加统计代码):"+category+','+ action+','+opt_label,'background:#FF0606;color:#AEAEAE;');
		}

	}
}